package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.IllnessMember;
import com.itheima.pojo.Member;
import com.itheima.pojo.OderInformation;
import com.itheima.pojo.RiskAssessment;

import java.util.List;
import java.util.Map;

public interface MemberDao {
    public List<Member> findAll();

    public Page<Member> selectByCondition(String queryString);

    public void add(Member member);

    public void deleteById(Integer id);

    public Member findById(Integer id);

    public Member findByTelephone(String telephone);

    public void edit(Member member);

    public Integer findMemberCountBeforeDate(String date);

    public Integer findMemberCountByDate(String date);

    public Integer findMemberCountAfterDate(String date);

    public Integer findMemberTotalCount();
    //根据风险排序分页查询会员数据
    List<RiskAssessment> findMember4Risk(Map limitMap);

    //查询预约信息
    Page<OderInformation> findAllIformation(String queryString);

    //查询患者信息
    Page<IllnessMember> findIllnessMember(String queryString);

    //根据id删除病人该项信息
    void delectByIllnessIdAndMemberId(Map map);
}
